<!-- 创建活动 -->
<template>
  <div>
    <EditActivity :key="timestamp" />
  </div>
</template>

<script>
import EditActivity from '../components/editActivity/index.vue'
export default {
  name: 'ActivityCreate',
  components: {
    EditActivity
  },
  data() {
    return {
      timestamp: ''
    }
  },
  beforeRouteEnter(to, from, next) {
    next(vm => {
      if (to.query.timestamp && to.query.timestamp != vm.timestamp) {
        vm.timestamp = to.query.timestamp
      }
    })
  }
}
</script>
<style scoped></style>
